package com.framework.spring.order;

import lombok.extern.slf4j.Slf4j;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

@Order(2)
@Component
@Slf4j(topic = "e")
public class Z1 {

	public Z1() {
		log.info("z1 order-{}", this.getClass().getAnnotation(Order.class).value());
	}

	@PostConstruct
	public void init() {
		log.info("Z1 init");
	}
}
